﻿@using KRM.Core
@model tblPosition
@{
    Layout = null;
}
        <form action="/Position/edit" method="POST" class="form-horizontal">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
            <h4>Edit Position</h4>
        </div>
            <div class="modal-body">
                <div class="row-fluid">
                    <input type="hidden" name="ID" value="@Model.Id"/>
                    <div class="form-group">
                        <div class="col-md-3">Name</div>
                        <div class="col-md-8">
                            <input type="text" class="form-control" name="Name" required="required" value="@Model.Name" />
                        </div>
                    </div>
                     <div class="form-group">
                        <div class="col-md-3">Department</div>
                        <div class="col-md-8">
                            @Html.DropDownList("DepartmentId",null,new {@class="form-control"})
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-md-3">Description</div>
                        <div class="col-md-8">
                            <textarea type="text" rows="5"class="form-control" name="Description" required="required">@Model.Description</textarea>
                        </div>
                        </div>                  
                </div>
            </div>


<div class="modal-footer">
    <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
    <input type="submit" class="btn blue" style="padding: 8px 30px;" value="Save"/>
</div>
</form>

